package com.mofang.ticketing.base.serve.sysconfig.controller;

import com.mofang.ticketing.common.core.enums.account.AccountTypeEnum;
import com.mofang.ticketing.common.core.validation.InEnum;
import com.mofang.ticketing.common.core.validation.Mobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "test")
public class TestValidate implements Serializable {
    @InEnum(value = AccountTypeEnum.class, message = "账号类型有误")
    @ApiModelProperty(value = "账号类型")
    private Integer accountType;

    @Mobile
    @ApiModelProperty(value = "手机号")
    private String mobile;
}
